package cn.cangfei.massage.mapper;

import cn.cangfei.massage.entity.MassageOutpatientRelation;
import cn.cangfei.massage.entity.MassageOutpatientRelationExample;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MassageOutpatientRelationMapper extends BaseMapper<MassageOutpatientRelation> {
    long countByExample(MassageOutpatientRelationExample example);

    int deleteByExample(MassageOutpatientRelationExample example);

    int deleteByPrimaryKey(Long id);

    int insert(MassageOutpatientRelation record);

    int insertSelective(MassageOutpatientRelation record);

    List<MassageOutpatientRelation> selectByExample(MassageOutpatientRelationExample example);

    MassageOutpatientRelation selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") MassageOutpatientRelation record, @Param("example") MassageOutpatientRelationExample example);

    int updateByExample(@Param("record") MassageOutpatientRelation record, @Param("example") MassageOutpatientRelationExample example);

    int updateByPrimaryKeySelective(MassageOutpatientRelation record);

    int updateByPrimaryKey(MassageOutpatientRelation record);

    // 根据推拿馆id，获取推拿馆门诊关系
    MassageOutpatientRelation getInfoByMassageId(@Param("id") Long id);
}
